import React, { Component } from 'react'

import { Route } from 'react-router-dom'
import Adduser from './views/Adduser'
import Edituser from './views/Edituser'
import Home from './views/Home'

class App extends Component {

  render() {
    return (
      <>


        {/* 路由定义 */}
        {/* // 添加用户路由 */}
        <Route exact path="/" component={Home} />
        <Route path="/add" component={Adduser} />
        <Route path="/edit/:id" component={Edituser} />
      </>
    )
  }

}

export default App
